<template>
  <div>
    <div class="iframe"></div>
    <div class="code">
      <!-- 支付二维码iframe -->
      <!--  scrolling="no" -->
      <iframe :src="url" allowtransparency="true" frameborder="0" width="300" height="300" scrolling="no"></iframe>
    </div>
    <div class="tip">支付宝或微信扫码支付</div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      url: '' || sessionStorage.getItem('url')
    }
  }
}
</script>

<style lang="scss" scoped>
  .iframe {
    width: 100%;
    height: 100%;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #ffffff;
  }
  .code {
    position: relative;
    width: 400px;
    height: 540px;
    margin: 5% auto 0;
    background: url('../assets/icon_qrcode.png') no-repeat;
    background-size: 100% 100%;
    iframe {
      text-align: center;
      margin-top: 220px;
      margin-left: 50px;
    }
  }
  .tip {
    text-align: center;
    position: relative;
    padding: 20px 0
  }
</style>

